692011dd901485d8d897ca52f2ae6ad38baedd9a,java/org/apache/tomcat/websocket/WsFrameBase.java,WsFrameBase,processDataBinary,#,494
Before Change
private boolean processDataBinary() throws IOException {
// Copy the available data to the buffer
while (!transformation.getMoreData(opCode, rsv, messageBufferBinary)) {
// Frame not complete - what did we run out of?
if (readPos == writePos) {
// Ran out of input data - get some more
After Change
private boolean processDataBinary() throws IOException {
// Copy the available data to the buffer
TransformationResult tr = transformation.getMoreData(opCode, rsv, messageBufferBinary);
while (!TransformationResult.END_OF_FRAME.equals(tr)) {
// Frame not complete - what did we run out of?
if (TransformationResult.UNDERFLOW.equals(tr)) {
// Ran out of input data - get some more
return false;
}